<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    let reg = /^[辽]{1}[A-P]{1}[A-Z0-9]{4,5}[A-Z0-9]{1}$/

    let card = '辽A123252'
    console.log(reg.test(card))
</script>
</html>